package cn.yulr.log;

/**
 * 请求 日志 所携带的参数信息
 */
public class LogRequestBean {

    /**
     * 远端的端口号信息
     */
    private int port;

    /**
     * 远端日志的服务器IP地址
     */
    private String serverIp;

    /**
     * 上传类型
     * 0 UDP
     * 1 TCP
     * 2 WebSocket
     * 目前只支持 0
     */
    private byte type = 0;

    public LogRequestBean(int port, String serverIp, byte type) {
        this.port = port;
        this.serverIp = serverIp;
        this.type = type;
    }

    public LogRequestBean(int port, String serverIp) {
        this.port = port;
        this.serverIp = serverIp;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

}
